import json
from config import BASE_PATH


def common_read_json_data(filenamr):
    with open(filenamr, "r", encoding="utf8") as f:
        json_data = json.load(f)
        list_data = []
        for i in json_data:
            list_data.append(tuple(i.values()))

    return list_data


if __name__ == '__main__':
    # filenamr = BASE_PATH + "/data/ihrm_login_data.json"
    # ret1 = common_read_json_data(filenamr)
    # print(ret1)

    filenamr = BASE_PATH + "/data/ihrm_emp_manger_data.json"
    ret1 = common_read_json_data(filenamr)
    print(ret1)